c1c929a87735bee6675627d84308e0902333c4f8,src/main/java/logbook/bean/CombinedBattleEcBattle.java,CombinedBattleEcBattle,toBattle,#JsonObject#,133
Before Change
public static CombinedBattleEcBattle toBattle(JsonObject json) {
CombinedBattleEcBattle bean = new CombinedBattleEcBattle();
JsonHelper.bind(json)
.set("api_air_base_attack", bean::setAirBaseAttack,
JsonHelper.toList(BattleTypes.AirBaseAttack::toAirBaseAttack))
.setInteger("api_dock_id", bean::setDockId)
.setInteger("api_deck_id", bean::setDockId)
.set("api_ship_ke", bean::setShipKe, JsonHelper::toIntegerList)
.set("api_ship_ke_combined", bean::setShipKeCombined, JsonHelper::toIntegerList)
.set("api_ship_lv", bean::setShipLv, JsonHelper::toIntegerList)
.set("api_ship_lv_combined", bean::setShipLvCombined, JsonHelper::toIntegerList)
.set("api_nowhps", bean::setNowhps, JsonHelper::toIntegerList)
.set("api_maxhps", bean::setMaxhps, JsonHelper::toIntegerList)
.set("api_nowhps_combined", bean::setNowhpsCombined, JsonHelper::toIntegerList)
.set("api_maxhps_combined", bean::setMaxhpsCombined, JsonHelper::toIntegerList)
.setBoolean("api_midnight_flag", bean::setMidnightFlag)
.set("api_eSlot", bean::setESlot, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eSlot_combined", bean::setESlotCombined, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eKyouka", bean::setEKyouka, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_fParam", bean::setFParam, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eParam", bean::setEParam, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eParam_combined", bean::setEParamCombined, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_search", bean::setSearch, JsonHelper::toIntegerList)
.set("api_formation", bean::setFormation, JsonHelper::toIntegerList)
.set("api_stage_flag", bean::setStageFlag, JsonHelper::toIntegerList)
.set("api_kouku", bean::setKouku, BattleTypes.Kouku::toKouku)
.setBoolean("api_support_flag", bean::setSupportFlag)
.set("api_support_info", bean::setSupportInfo, BattleTypes.SupportInfo::toSupportInfo)
After Change
public static CombinedBattleEcBattle toBattle(JsonObject json) {
CombinedBattleEcBattle bean = new CombinedBattleEcBattle();
JsonHelper.bind(json)
.set("api_air_base_injection", bean::setAirBaseInjection,
JsonHelper.toList(BattleTypes.AirBaseAttack::toAirBaseAttack))
.set("api_air_base_attack", bean::setAirBaseAttack,
JsonHelper.toList(BattleTypes.AirBaseAttack::toAirBaseAttack))
.setInteger("api_dock_id", bean::setDockId)
.setInteger("api_deck_id", bean::setDockId)
.set("api_ship_ke", bean::setShipKe, JsonHelper::toIntegerList)
.set("api_ship_ke_combined", bean::setShipKeCombined, JsonHelper::toIntegerList)
.set("api_ship_lv", bean::setShipLv, JsonHelper::toIntegerList)
.set("api_ship_lv_combined", bean::setShipLvCombined, JsonHelper::toIntegerList)
.set("api_nowhps", bean::setNowhps, JsonHelper::toIntegerList)
.set("api_maxhps", bean::setMaxhps, JsonHelper::toIntegerList)
.set("api_nowhps_combined", bean::setNowhpsCombined, JsonHelper::toIntegerList)
.set("api_maxhps_combined", bean::setMaxhpsCombined, JsonHelper::toIntegerList)
.setBoolean("api_midnight_flag", bean::setMidnightFlag)
.set("api_eSlot", bean::setESlot, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eSlot_combined", bean::setESlotCombined, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eKyouka", bean::setEKyouka, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_fParam", bean::setFParam, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eParam", bean::setEParam, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_eParam_combined", bean::setEParamCombined, JsonHelper.toList(JsonHelper::toIntegerList))
.set("api_search", bean::setSearch, JsonHelper::toIntegerList)
.set("api_formation", bean::setFormation, JsonHelper::toIntegerList)
.set("api_stage_flag", bean::setStageFlag, JsonHelper::toIntegerList)
.set("api_injection_kouku", bean::setInjectionKouku, BattleTypes.Kouku::toKouku)
.set("api_kouku", bean::setKouku, BattleTypes.Kouku::toKouku)
.setBoolean("api_support_flag", bean::setSupportFlag)
.set("api_support_info", bean::setSupportInfo, BattleTypes.SupportInfo::toSupportInfo)